<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<title><?php echo C('defaultinfo.name');?> - Powered By可用可信HRM</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
		<meta name="description" content=""/>
		<meta name="author" content="可用可信HRM"/>
		<link rel="shortcut icon" href="__PUBLIC__/ico/favicon.png"/>
		<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.css">
		<link rel="stylesheet" href="__PUBLIC__/css/hrms.css">
		<script src="__PUBLIC__/js/jquery.min.js"></script>
		<script src="__PUBLIC__/js/bootstrap.min.js"></script>
		<script src="__PUBLIC__/js/nongli.js"></script>
		<script src="__PUBLIC__/js/calendar.js"></script>
		<!--[if lt IE 9]>
		<script src="__PUBLIC__/js/html5shiv.min.js"></script>
		<script src="__PUBLIC__/js/respond.min.js"></script>
		<![endif]-->
	</head>
	<body>
<link rel="stylesheet" href="__PUBLIC__/css/treeview/jquery.treeview.css" type="text/css">
<script type="text/javascript" src="__PUBLIC__/js/treeview/jquery.treeview.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/treeview/jquery.treeview.edit.js"></script>
<script type="text/javascript">
	$(function() {
		$("#browser").treeview();
	})
</script>
<style type="text/css">
.ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position:-144px 0; vertical-align:top; *vertical-align:middle}
.dltable{width:100%;height:700px;background-color:#d8e8f8;}
.dllist{width:400px;height:500px;float:left;border:1px solid #9eb5ce;background-color:#eef4fb;}
.dt1{float:left;width:100%;
border-bottom:1px solid #d9e1e9;text-align:center;font-size:15px;line-height:50px;background-color:#B9D3EE;}
.dd1{float:left;width:100%;height:60px;padding-top:10px;padding-left:10px;border-bottom:1px solid #d9e1e9;line-height:30px;}
.tsubmit{
width:70px;height:30px;background-color:#0789cc;border:hidden;
-moz-box-shadow: 2px 2px 1px #909090;
-webkit-box-shadow: 2px 2px 1px #909090;
box-shadow:2px 2px 1px #909090;
border-radius:10px;
font-family:黑体;
font-size:15px;
color:white;
text-align:center;
}
.tsubmit:hover{
	background-color:#055680;
}
.desc{
	width:100%;height:100;border:1px;float:left;
}
.desc li{
	list-style:none;
	line-height:30px;
	font-weight:bold;
}
.dd1 input:disabled{
	background-color:#ffffff;
	text-align:center;
}
</style>
<?php echo W('Navigation');?>
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title"><a href="javascript:history.back()"><<返回</a>支出详情</div>
	</div>

<?php $bai=100/count($list['type']);?>
	<div class="dltable">
		
			<div class="desc">
				<li>支出日期：<?php echo (date("Y/m/d H:i",$list["total"]["total_date"])); ?></li>
				<li>团队：<?php echo ($list["total"]["department"]["name"]); ?></li>
				<li>总金额：<?php echo ($list["total"]["money_sum"]); ?> &nbsp;(元)</li>
				<li>添加时间：<?php echo (date("Y/m/d H:i",$list["total"]["add_time"])); ?></li>
				<li>备注：<?php echo ($list["total"]["desc"]); ?></li>	
			</div>		
		
		<?php if(is_array($list['type'])): $i = 0; $__LIST__ = $list['type'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><dl class="dllist" style="width:<?php echo ($bai); ?>%;">
				<dt class="dt1"><?php echo ($v["name"]); ?></dt>

				<?php if(is_array($v['power'])): $i = 0; $__LIST__ = $v['power'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><dd class="dd1" ><?php echo ($vo["name"]); ?>:<input type="text" name="<?php echo ($list['money'][$key]["money"]); ?>" value="<?php echo ($list['money'][$key]["money"]); ?>" size="8" disabled/></dd><?php endforeach; endif; else: echo "" ;endif; ?>

			</dl><?php endforeach; endif; else: echo "" ;endif; ?>
		
		
	</div>

	
	
	
</div>
<div class="clear"></div>
<script type="text/javascript">
function validate_name(dep,str){
	with(dep)
	{
		if(value==null || value=="")
		{alert(str);return false;}
		else{	return true;}
	}
}

	function validate_form(thisform){
		with(thisform)
		{
			if(validate_name(dep,"请选择团队")==false){
				dep.focus();return false;
			}
			if(validate_name(expend_date,"请输入支出日期")==false){
				expend_date.focus();return false;
			}

		}
	}
</script>

<div class="modal fade" id="alert" tabindex="-1" data-backdrop="static">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="myModalLabel">提示信息</h4>
			</div>
			<div class="modal-body">
			<?php if(is_array($alert)): foreach($alert as $k=>$v): if(is_array($v)): foreach($v as $kk=>$vv): ?><div class="alert alert-<?php echo ($k); ?>">
					<?php echo ($vv); ?>
				</div><?php endforeach; endif; endforeach; endif; ?>
			</div>
		</div>
	</div>
</div>
<?php if(!empty($alert)): ?><script type="text/javascript">
	$('#alert').modal('show');
	var alert_n = setInterval('$("#alert").modal("hide")',1000);
	$('#alert').on('hide.bs.modal', function (e) {
		clearInterval(alert_n);
	});
</script><?php endif; ?>
		 <div id="footer">
			<div class="container">
				<p class="text-muted credit">
					可用可信HRM © 2016 <a href="http://www.dgpaotui.com" target="_blank">东莞市可用可信家庭服务有限公司</a>版权所有
				</p>
			</div>
		</div> 
	</body>
</html>